A5Storage::DataItem CopyTo Method

Syntax

.CopyTo as L (TargetContainer as A5Storage::DataContainer, TargetItemName as C)

Arguments

TargetContainerA5Storage::DataContainer

The Storage container to add the item.

TargetItemNameCharacter

The name for the item created in the target Storage container.

Returns

ResultLogical

Returns .T. if the operation succeeds, otherwise .F. (see .CallResult for additional error information.)

Description

Copies an item to a Storage container.

Example

dim Container as A5Storage::DataContainer = null_value()
dim TargetContainer as A5Storage::DataContainer = null_value()

CallResult = A5Storage::DataContainer::Open(Container, "Provider='Disk';Container='c:\A5Webroot';")
CallResult = A5Storage::DataContainer::Open(TargetContainer, "Provider='Disk';Container='c:\A5Webroot2';")

Dim Item A5Storage::DataItem = null_value()
Container.ReferenceItem(Item, "MyObjectName")
Item.CopyTo(TargetContainer, "MyObjectName")